// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 65;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You enter the Low Dhaga for the first time. It is one of the four provinces of the Rokaj, a wild land full of warring clans and roving raiders. It is also where your father, Consort Darmal, was born. Your family's closest links to the Ro are all here.";
	text2 = "The Low Dhaga sits in a deep valley between high mountain ranges to the north and south. It is sheltered from any moisture that would blow in from the sea, leaving a dry, sandy expanse of hills. This land alternates between searing heat and icy cold, scoured by constant winds.";
	text3 = "Hills rise above you in all directions. The Low Dhagans are incredibly skilled at stealth. A hundred warriors could be watching you now, and you'd have no idea.";
	text4 = "Your mother sent you here on a mission. Judge Haven's governor, and hear the petitions of their Raasa. You can see the city of Azam in the distance to the east. Your work can begin there.";
	code =
		sf(100 + this_sec,1,1);
		if (gf(80,10) == 0)
			sf(80,10,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "There is a large clan of the Low Dhaga camped around this oasis. Being this close to the main road, they are used to visitors. They invite you in for tea and attempt to sell you produce and small, handmade trinkets.";
	text2 = "They are very polite, which is to be expected when being visited by royalty. However, you can detect a constant undercurrent of dislike. You note out of the edge of your sight constant worried, angry looks. When you leave, their relief is clear.";
	text3 = "They are very polite, which is to be expected when being visited by royalty. As time passes, you realize that some of the affection might be genuine. They have heard good things about you. When you depart, they are almost sad.";
	code =
		sf(100 + this_sec,2,1);
		if (gf(80,16) < 105)
			rs(3);
			else rs(2);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = gf(165,11) == 0;
	text1 = "You meet a band of Low Dhagan warriors. They are patrolling the road, looking for raiders and other criminals. All of them bear different clan symbols, and they have an uneasy alliance at best.";
	text2 = "When you come into view, they suddenly find an excuse to investigate something off the road. They disappear in the rocks before you can talk to them.";
	code =
		sf(165,11,1);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "At first, you think this clump of warriors is wandering the wastes looking for raiders. They look like soldiers, though it's a bit warm for them to be wearing those helmets.";
	text2 = "When you get close, they begin screeching incoherently. Then they rip off their helmets, revealing the faces of ka-wolves. They mindlessly charge.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The ka-wolves were wearing tattered clothing and armor, looted from battlefields and fallen soldiers. You find some coins in the pockets.";
	code =
		change_coins(28,TRUE);
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = gf(165,12) == 0;
	question = "Name";
	text1 = "There are multiple watchtowers at the entrance to the Low Dhaga. This province has a long history of raiding the rest of the Rokaj, and the Ro send plenty of expeditions in return. This main road into the hill country is heavily guarded.";
	text2 = "A group of guards stands and approaches you. They want to talk. No weapons are drawn.";
	text3 = "The guards recognize you. They wave as you pass.";
	code =
		sf(165,12,1);
		if (gf(165,13) == 0)
			rs(3);
			else rs(2);
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Talk to them.";
	text1 = "When the Dhagan warriors get close enough to see that you are a Havenite, they relax. They are willing to fight, but they'd prefer not to. At least today.";
	text2 = "A guard says, _Welcome, Havenite. This is the Low Dhaga. It is not a safe time. Raiders and ka-wolves roam the hills. Azam is not far to the east. It is an island of safety, but you should stay close to the road._";
	text3 = "_Oh. We apologize, but we are ordered to ask. Do you have permission to travel the Pilgrimage Road?_";
	code =
		if (gf(165,13) == 0)
			sf(163,13,1);
		if (gf(163,13) >= 2)
			rs(3);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just pass.";
	text1 = "The Dhagan warriors get close enough to see that you are a Havenite. They don't want to chase you down, so they just wave you by.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(10,11) == 0 && gf(163,13) < 2;
	question = "_I don't have permission to travel the Pilgrimage Road._";
	text1 = "_Oh. I wish you had lied. That makes things more difficult. Well ... You can get it from the Raasa in Laskara. I know Raasa Elha would be honored to meet you._";
	code =
		sf(163,13,2);
	break;
		
begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(10,11) > 0 && gf(163,13) < 2;
	question = "_I have permission to travel the Pilgrimage Road._";
	text1 = "_Thank you. I am forced to ask. You also could have lied._";
	code =
		sf(163,13,2);
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(80,10) < 4;
	question = "_Tell me about the raiders._";
	text1 = "_The hills became very dangerous a few weeks before you were attacked, [P]. Ka-wolves and brigands, in numbers. They have been timid so far, but they get bolder by the day._";
	text2 = "_We wish we could hunt them, but we are trapped here._ The Ro nod.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(80,10) >= 4;
	question = "_Tell me about the raiders._";
	text1 = "Suddenly, the Dhagans become very nervous. For some reason, they don't want to talk about your victory. They just say, _It is a tense time. None of us want war._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What is nearby?_";
	text1 = "_The city of Azam is not far to the east. You can learn much there. You probably want [F3], your fort. It is on the other side of the river from Azam._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'm going now._";
	text1 = "They give you respectful bows. You march off into the wind and sand.";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				